import Service from '@/common/service/service';
import {GET_SERVICE_LIST, DELETE_SERVICE} from "@/views/system/service-mgt/service-mgt-const";
import RequestModel from "@/common/model/request.model";
import ServiceMgtModel from "@/views/system/service-mgt/model/service-mgt-model";
import ResponseModel from "@/common/model/response.model";

export default class ServiceMgtService {


    /**
     * 查询系统服务
     * @param param
     */
    public static getServiceList(param: RequestModel<ServiceMgtModel>): Promise<ResponseModel<ServiceMgtModel[]>> {
        return Service.get(GET_SERVICE_LIST, param);
    }

    /**
     * 获取流程示例列表
     * @param param
     */
    public static deleteInstance(param: string[]): Promise<ResponseModel<ServiceMgtModel[]>> {
        return Service.get(DELETE_SERVICE, param);
    }
}
